class Father:
    field = 'success'

    def wish(self):
        """祝福"""
        print(F'【父】福如东海-{self.field}')


class Son(Father):
    field = 'happy rich'  # 复写父类的属性

    def wish(self):
        print('重写父类的方法')
        print(F'父类的field: {super().field}；子类的field: {self.field}')
        # 调用父类的方法
        super().wish()
        print(F'父类的field: {Father.field}；子类的field: {self.field}')
        # 调用父类的方法
        Father.wish(self)


son = Son()
print(son.field)
son.wish()
